 <?php
 //use Users\Controller;
 
 $title = 'Users';
 $this->headTitle($title);
 ?>
 
 <div class="well well-small">
    <h3><?php echo $this->escapeHtml($title);?></h3>
 </div>
 
 <table class="table">
 <tr>
     <th>Name</th>
     <th>Id/E-mail</th>
     <th>&nbsp;</th>
 </tr>
 <?php foreach ($this->users as $user) : ?>
 <tr>
     <td><?php  echo $this->escapeHtml($user->name);?></td>
     <td><?php  echo $this->escapeHtml($user->email);?></td>
    
     <td>
         <a href="<?php echo $this->url('usermanager', array('action'=>'edit', 'id' => $user->id));?>">Edit</a>
             
         <a href="<?php echo $this->url('usermanager', array('action'=>'delete', 'id' => $user->id));?>">Delete</a>
     </td>
 </tr>
 <?php endforeach; ?>
 </table>
 <p>
     <a class="btn" href="users/register"> &gt;&gt; Add user with register (class button) </a>
     <a class="btn" href="<?php echo $this->url('usermanager', array('action'=>'add'));?>">Add user with usermanager</a>
 </p>